package com.dlc.toolkit.distribution

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import com.dlc.toolkit.R
import com.dlc.toolkit.view.MyViewPage2

class DistributionActivity : AppCompatActivity() {
    var fragments: ArrayList<Fragment> = ArrayList()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_distribution)
        var a:List<String> = listOf("在","啊","去","玩","扼","锕","在","啊","去","玩","扼","锕","在","啊","去","玩","扼","锕","在","啊","去","玩","扼","锕","在","啊","去","玩","扼","锕","在","啊","去","玩","扼","锕","在","啊","去","玩","扼","锕","在","啊","去","玩","扼","锕","在","啊","去","玩","扼","锕","在","啊","去","玩","扼","锕","在","啊","去","玩","扼","锕","在","啊","去","玩","扼","锕","在","啊","去","玩","扼","锕","在","啊","去","玩","扼","锕","在","啊","去","玩","扼","锕")
        var b:List<String> = listOf("在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1","在1","啊1","去1","玩1","扼1")
        fragments.add(DistributionFragment(a))
        fragments.add(DistributionFragment(b))
        fragments.add(DistributionFragment(a))
        fragments.add(DistributionFragment(b))
        fragments.add(DistributionFragment(a))
        var vp_tap: MyViewPage2 = findViewById(R.id.vp_tap)
        var tapAdapter: TapAdapter = TapAdapter(this.supportFragmentManager,fragments)
        vp_tap.adapter = tapAdapter
    }
}